package com.shermanzhou.aop.log;

import org.springframework.stereotype.Service;

/**
 * @author zhouchaoqun
 * @date 2018/9/12 上午10:20
 */
@Service
public class DemoService {

    @ActionLog(handleMethodName = "logWithoutParams")
    public String joint() {
        System.out.println("joint1");
        return "";
    }

    @ActionLog(handleMethodName = "logWithString", paramIndex = "0")
    public String joint(String[] msgs) {
        System.out.println("joint2");
        return "";
    }

    @ActionLog(handleMethodName = "logWithArray", paramIndex = "0,1")
    public String joint(String id, String name) {
        System.out.println("joint3");
        return "";
    }
}
